package com.example.shuiyin.enums;

/**
 * 订单状态枚举
 */
public enum OrderStatus {
    /**
     * 待付款
     */
    PENDING_PAYMENT,
    
    /**
     * 已付款
     */
    PAID,
    
    /**
     * 已取消
     */
    CANCELLED,
    
    /**
     * 已完成
     */
    COMPLETED,
    
    /**
     * 已退款
     */
    REFUNDED;
    
    /**
     * 获取状态描述
     */
    public String getDescription() {
        switch(this) {
            case PENDING_PAYMENT: return "待付款";
            case PAID: return "已付款";
            case CANCELLED: return "已取消";
            case COMPLETED: return "已完成";
            case REFUNDED: return "已退款";
            default: return this.name();
        }
    }
} 